import request from '@/utils/request'

// 查询实时数据采集（大）列表
export function listRealtimegatherdata(query) {
    return request({
        url: '/datastatistics/realtimegatherdata/list',
        method: 'get',
        params: query
    })
}

// 查询实时数据
export function getOne(query) {
    return request({
        url: '/datastatistics/realtimegatherdata/getOne',
        method: 'get',
        params: query
    })
}

// 查询实时数据采集（大）详细
export function getRealtimegatherdata(TerminalID) {
    return request({
        url: '/datastatistics/realtimegatherdata/' + TerminalID,
        method: 'get'
    })
}

// 新增实时数据采集（大）
export function addRealtimegatherdata(data) {
    return request({
        url: '/datastatistics/realtimegatherdata',
        method: 'post',
        data: data
    })
}

// 修改实时数据采集（大）
export function updateRealtimegatherdata(data) {
    return request({
        url: '/datastatistics/realtimegatherdata',
        method: 'put',
        data: data
    })
}

// 删除实时数据采集（大）
export function delRealtimegatherdata(TerminalID) {
    return request({
        url: '/datastatistics/realtimegatherdata/' + TerminalID,
        method: 'delete'
    })
}
